package it.uniba.di.mas.jpnde.data;

import jade.util.leap.Serializable;

public class Post implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final String XMLNODE="post";
	public static final String XMLNODES="posts";
	
	public static final String XMLNODE_ID="id";
	public static final String XMLNODE_DESCRIPTION="description";
	public static final String XMLNODE_LOADTOKENS_CLASS="loadTokens-class";
	public static final String XMLNODE_PUTTOKENS_CLASS="putTokens-class";
	public static final String XMLNODE_ENDPOST="endPost";
	public static final String XMLNODE_TOKENS="tokens";
	
	private String id="";
	private String description="";
	private String loadTokensClass="";
	private String putTokensClass="";
	private String endPost="N";
	private long tokens=0;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getLoadTokensClass() {
		return loadTokensClass;
	}
	public void setLoadTokensClass(String loadTokensClass) {
		this.loadTokensClass = loadTokensClass;
	}
	public String getPutTokensClass() {
		return putTokensClass;
	}
	public void setPutTokensClass(String putTokensClass) {
		this.putTokensClass = putTokensClass;
	}
	public String getEndPost() {
		return endPost;
	}
	public void setEndPost(String endPost) {
		this.endPost = endPost;
	}
	public long getTokens() {
		return tokens;
	}
	public void setTokens(long tokens) {
		this.tokens = tokens;
	}
	@Override
	public String toString() {
		return "Post [id=" + id + ", description=" + description
				+ ", tokens=" + tokens + ", loadTokensClass=" + loadTokensClass
				+ ", putTokensClass=" + putTokensClass + ", endPost=" + endPost
				+ "]";
	}
	
	
	
}
